#ifndef TIMING_H
#define TIMING_H

#include <QtGui/QDialog>
#include "ui_timing.h"

#include "client.h"
#include "linkedlist.h"
#include "tagdefs.h"
#include "addremove.h"

class Timing : public QDialog
{
    Q_OBJECT

public:
    Timing(QWidget *parent = 0);
    ~Timing();
    
private slots:
	void on_btnOk_clicked();
	void on_btnDoQuery_clicked();
	void on_btnWrite_clicked();

private:
    Ui::TimingClass ui;

    int repeats;
    struct results {
        QString query;
        int msecs;
    };
	void dowork();
    void writeback();
    void doactualquery();

};

#endif // TIMING_H
